//package cn.ycl.system.other.study.netty.nettyClient;
//
//import io.netty.channel.ChannelInitializer;
//import io.netty.channel.ChannelPipeline;
//import io.netty.channel.socket.SocketChannel;
//
///**
// * @Author YuanChangLiang
// * @Date 2021/1/19 10:53
// */
//public class NettyClientInitializer extends ChannelInitializer<SocketChannel> {
//    @Override
//    protected void initChannel(SocketChannel socketChannel) throws Exception {
//        ChannelPipeline pipeline = socketChannel.pipeline();
//        //添加出站的handler进行编码NettyMessageToByteEncoder
//        pipeline.addLast(new NettyLongToByteEncoder());
//        //加入一个自定义的handler处理业务
//        pipeline.addLast(new NettyClientHandler());
//
//    }
//}
